graph theory:walk